
package com.sy.core.service;


import java.util.List;
import java.util.Map;
import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.sy.core.model.SysMenu;
import com.sy.core.mapper.SysMenuMapper;





/**
 * 	TODO 请用一句话描述该类的作用
 * @author CaiXinChong email:1060296473@qq.com
 * @version 1.0
 * @since 1.0
 */

@Service("SysMenuService")
public class SysMenuService  {

	protected final Logger logger = LoggerFactory.getLogger(SysMenuService.class);

   	@Autowired
    private SysMenuMapper  sysMenuMapper;

	/**
	 * All rights Reserved, Designed By Chong.CaiXin
	 * @Description: (查询对象集合)
	 * @author: Chong.CaiXin
	 * @version V1.0
	 *
	 */
	public List<SysMenu> queryByCondition(SysMenu sysMenu){
		return sysMenuMapper.queryByCondition(sysMenu);
	};

	/**
	 * All rights Reserved, Designed By Chong.CaiXin
	 * @Description: (根据主键查询对象)
	 * @author: Chong.CaiXin
	 * @version V1.0
	 *
	 */
	public SysMenu queryByPrimaryKey(String key){
		return sysMenuMapper.queryByPrimaryKey(key);
	};

	/**
	 * All rights Reserved, Designed By Chong.CaiXin
	 * @Description: (新增单个对象)
	 * @author: Chong.CaiXin
	 * @version V1.0
	 *
	 */
	public void insert(SysMenu sysMenu){ sysMenuMapper.insertSelective(sysMenu);};
	/**
	 * All rights Reserved, Designed By Chong.CaiXin
	 * @Description: (修改单个对象)
	 * @author: Chong.CaiXin
	 * @version V1.0
	 *
	 */
	public void update(SysMenu sysMenu){ sysMenuMapper.updateSelective(sysMenu);};


	/**
	 * All rights Reserved, Designed By Chong.CaiXin
	 * @Description: (根据主键删除对象)
	 * @author: Chong.CaiXin
	 * @version V1.0
	 *
	 */
	public void delete(String pk){ sysMenuMapper.deleteByPrimaryKey(pk);};


}
